Integrand size = 25, antiderivative size = 208 \[ \int \frac {c+d \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx=\frac {2 \sqrt {a+b} d \cot (e+f x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{b f}-\frac {2 \sqrt {a+b} c \cot (e+f x) \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a f} \]
[Out]
Time = 0.13 (sec) , antiderivative size = 208, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {4006, 3869, 3917} \[ \int \frac {c+d \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx=\frac {2 d \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{b f}-\frac {2 c \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{a f} \]
[In]
[Out]
Rule 3869
Rule 3917
Rule 4006
Rubi steps \begin{align*} \text {integral}& = c \int \frac {1}{\sqrt {a+b \sec (e+f x)}} \, dx+d \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx \\ & = \frac {2 \sqrt {a+b} d \cot (e+f x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{b f}-\frac {2 \sqrt {a+b} c \cot (e+f x) \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a f} \\ \end{align*}
Time = 3.78 (sec) , antiderivative size = 145, normalized size of antiderivative = 0.70 \[ \int \frac {c+d \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx=\frac {4 \cos ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {\frac {\cos (e+f x)}{1+\cos (e+f x)}} \sqrt {\frac {b+a \cos (e+f x)}{(a+b) (1+\cos (e+f x))}} \left ((-c+d) \operatorname {EllipticF}\left (\arcsin \left (\tan \left (\frac {1}{2} (e+f x)\right )\right ),\frac {a-b}{a+b}\right )+2 c \operatorname {EllipticPi}\left (-1,\arcsin \left (\tan \left (\frac {1}{2} (e+f x)\right )\right ),\frac {a-b}{a+b}\right )\right ) \sec (e+f x)}{f \sqrt {a+b \sec (e+f x)}} \]
[In]
[Out]
Time = 17.24 (sec) , antiderivative size = 182, normalized size of antiderivative = 0.88
method | result | size |
default | \(\frac {2 \left (\cos \left (f x +e \right )+1\right ) \left (\operatorname {EllipticF}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), \sqrt {\frac {a -b}{a +b}}\right ) c -\operatorname {EllipticF}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), \sqrt {\frac {a -b}{a +b}}\right ) d -2 \operatorname {EllipticPi}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), -1, \sqrt {\frac {a -b}{a +b}}\right ) c \right ) \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (a +b \right ) \left (\cos \left (f x +e \right )+1\right )}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {a +b \sec \left (f x +e \right )}}{f \left (b +a \cos \left (f x +e \right )\right )}\) | \(182\) |
parts | \(\frac {2 c \left (\cos \left (f x +e \right )+1\right ) \left (\operatorname {EllipticF}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), \sqrt {\frac {a -b}{a +b}}\right )-2 \operatorname {EllipticPi}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), -1, \sqrt {\frac {a -b}{a +b}}\right )\right ) \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (a +b \right ) \left (\cos \left (f x +e \right )+1\right )}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {a +b \sec \left (f x +e \right )}}{f \left (b +a \cos \left (f x +e \right )\right )}-\frac {2 d \left (\cos \left (f x +e \right )+1\right ) \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (a +b \right ) \left (\cos \left (f x +e \right )+1\right )}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \operatorname {EllipticF}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), \sqrt {\frac {a -b}{a +b}}\right ) \sqrt {a +b \sec \left (f x +e \right )}}{f \left (b +a \cos \left (f x +e \right )\right )}\) | \(263\) |
[In]
[Out]
Timed out. \[ \int \frac {c+d \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {c+d \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx=\int \frac {c + d \sec {\left (e + f x \right )}}{\sqrt {a + b \sec {\left (e + f x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {c+d \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx=\int { \frac {d \sec \left (f x + e\right ) + c}{\sqrt {b \sec \left (f x + e\right ) + a}} \,d x } \]
[In]
[Out]
\[ \int \frac {c+d \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx=\int { \frac {d \sec \left (f x + e\right ) + c}{\sqrt {b \sec \left (f x + e\right ) + a}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {c+d \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx=\int \frac {c+\frac {d}{\cos \left (e+f\,x\right )}}{\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}} \,d x \]
[In]
[Out]